<!DOCTYPE html>
<html>
	<head>
		<title>Amber</title>
		<%= stylesheet_link_tag    "application", :media => "all" %>
		<%= javascript_include_tag "application" %>
		<%= csrf_meta_tags %>
	</head>
	<body>
		<% unless @current_userid.blank?%>
		<header>
			<hgroup class="clearfix">
				<h1><a href="#"><span>My management system</span></a></h1>
				<h2>Hello <%= @current_userid%>! you can  <%= link_to "logout", logout_url%></h2>
			</hgroup>
		</header>
		<div id="main" class="clearfix">
			<div id="accordion-resizer" class="ui-widget-content">
				<div id="accordion" class="menu">
					<h3>System Management</h3>
					<div class="submenu">
						<ul>
							<li>
								<%= link_to "user management", users_url%>
							</li>
							<li>
								<a href="#">Graphic Design</a>
							</li>
							<li>
								<a href="#">Tools</a>
							</li>
						</ul>
					</div>
					<h3>Section 2</h3>
					<div class="submenu">
						<ul>
							<li>
								<a href="#">Css</a>
							</li>
							<li>
								<a href="#">Graphic Design</a>
							</li>
							<li>
								<a href="#">Css</a>
							</li>
							<li>
								<a href="#">Graphic Design</a>
							</li>
							<li>
								<a href="#">Css</a>
							</li>
							<li>
								<a href="#">Graphic Design</a>
							</li>
							<li>
								<a href="#">Css</a>
							</li>
							<li>
								<a href="#">Graphic Design</a>
							</li>
						</ul>
					</div>
				</div>
			</div>
			<div id="content">
				<%= yield %>
			</div>
		</div>
		<footer>
			<div class="fgroup clearfix">
				Design and code by <a href="#">I</a>
			</div>
		</footer>
		<% else%>
		<div>
			<%= yield %>
		</div>
		<% end %>
	</body>
</html>
